package com.chance.cc.crawler.prod.command.schedule.vm.bitauto;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.prod.command.job.domain.vm.bitauto.realtime.*;
import com.chance.cc.crawler.prod.command.schedule.CommonCrawlerJobSchedule;
import org.junit.Test;

/**
 * @author lt
 * @version 1.0
 * @date 2020-12-09 16:15:28
 * @email okprog@sina.com
 */
public class BitAutoCommonCrawlerJobSchedule extends CommonCrawlerJobSchedule {


    public static void main(String[] args) {
        //易车新闻
        //autoHomeCommonCrawlerScheduleJob(BitAutoWebArticleCrawlerSchedulerJob.bitAutoScheduler());
       // delCrawlerScheduleJob(BitAutoWebArticleCrawlerSchedulerJob.bitAutoScheduler());
        //易车视频
       // autoHomeCommonCrawlerScheduleJob(BitAutoWebVideoCrawlerSchedulerJob.bitAutoScheduler());
       // delCrawlerScheduleJob(BitAutoWebVideoCrawlerSchedulerJob.bitAutoScheduler());
//        autoHomeCommonCrawlerScheduleJob(BitAutoWebForumReleaseCrawlerSchedulerJob.bitAutoScheduler());
        autoHomeCommonCrawlerScheduleJob(BitAutoWebHaoArticleCrawlerSchedulerJob.bitAutoScheduler());
//        autoHomeCommonCrawlerScheduleJob(BitAutoWebPraiseCrawlerSchedulerJob.bitAutoScheduler());
//        autoHomeCommonCrawlerScheduleJob(BitAutoWebVideoCrawlerSchedulerJob.bitAutoScheduler());
      //  autoHomeCommonCrawlerScheduleJob(BitAutoWebArticleTraceCrawlerSchedulerJob.bitAutoScheduler());
//        autoHomeCommonCrawlerScheduleJob(BitAutoWebForumInteractionCrawlerSchedulerJob.bitAutoScheduler());
//        autoHomeCommonCrawlerScheduleJob(BitAutoWebForumReplyCrawlerSchedulerJob.bitAutoScheduler());
//        autoHomeCommonCrawlerScheduleJob(BitAutoWebHaoArticleTraceCrawlerSchedulerJob.bitAutoScheduler());
//        autoHomeCommonCrawlerScheduleJob(BitAutoWebPraiseTraceCrawlerSchedulerJob.bitAutoScheduler());
//        autoHomeCommonCrawlerScheduleJob(BitAutoWebVideoTraceCrawlerSchedulerJob.bitAutoScheduler());
       // autoHomeCommonCrawlerScheduleJob(BitAutoWebHaoArticleAllSimpleCrawlerSchedulerJob.bitAutoScheduler());

        //吉利项目
      //  autoHomeCommonCrawlerScheduleJob(BitAutoWebForumGeelyReleaseCrawlerSchedulerJob.bitAutoScheduler());
      //  autoHomeCommonCrawlerScheduleJob(BitAutoWebForumGeelyTraceCrawlerSchedulerJob.bitAutoScheduler());


        //车型信息采集
        //autoHomeCommonCrawlerScheduleJob(BitAutoWebCarTypeCrawlerSchedulerJob.bitAutoScheduler());
        //经销商信息采集
//        autoHomeCommonCrawlerScheduleJob(BitAutoWebDelearCrawlerScheduleJob.bitAutoScheduler());

}

    public static void autoHomeCommonCrawlerScheduleJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_17.republishCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_5);
    }

    public static void delCrawlerScheduleJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_17.deleteCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_5);
    }

    @Test
    public void delJob(){
        delCrawlerScheduleJob(BitAutoWebArticleCrawlerSchedulerJob.bitAutoScheduler());
        delCrawlerScheduleJob(BitAutoWebForumReleaseCrawlerSchedulerJob.bitAutoScheduler());
        delCrawlerScheduleJob(BitAutoWebPraiseCrawlerSchedulerJob.bitAutoScheduler());
        delCrawlerScheduleJob(BitAutoWebVideoCrawlerSchedulerJob.bitAutoScheduler());
    }

}
